load("//tensorflow_lite_support/cc/port:build_defs.bzl", "support_cc_proto_library")

package(
    default_visibility = ["//tensorflow_lite_support:users"],
    licenses = ["notice"],  # Apache 2.0
)

proto_library(
    name = "nl_classifier_options_proto",
    srcs = ["nl_classifier_options.proto"],
    deps = [
        "//tensorflow_lite_support/cc/task/core/proto:base_options_proto",
    ],
)

support_cc_proto_library(
    name = "nl_classifier_options_cc_proto",
    deps = [
        ":nl_classifier_options_proto",
    ],
)

cc_library(
    name = "nl_classifier_options_proto_inc",
    hdrs = ["nl_classifier_options_proto_inc.h"],
    deps = [
        ":nl_classifier_options_cc_proto",
        "//tensorflow_lite_support/cc/task/core/proto:base_options_proto_inc",
    ],
)

proto_library(
    name = "bert_nl_classifier_options_proto",
    srcs = ["bert_nl_classifier_options.proto"],
    deps = [
        "//tensorflow_lite_support/cc/task/core/proto:base_options_proto",
    ],
)

cc_proto_library(
    name = "bert_nl_classifier_options_cc_proto",
    deps = [
        ":bert_nl_classifier_options_proto",
    ],
)

cc_library(
    name = "bert_nl_classifier_options_proto_inc",
    hdrs = ["bert_nl_classifier_options_proto_inc.h"],
    deps = [
        ":bert_nl_classifier_options_cc_proto",
        "//tensorflow_lite_support/cc/task/core/proto:base_options_proto_inc",
    ],
)

proto_library(
    name = "bert_question_answerer_options_proto",
    srcs = ["bert_question_answerer_options.proto"],
    deps = [
        "//tensorflow_lite_support/cc/task/core/proto:base_options_proto",
    ],
)

cc_proto_library(
    name = "bert_question_answerer_options_cc_proto",
    deps = [
        ":bert_question_answerer_options_proto",
    ],
)

cc_library(
    name = "bert_question_answerer_options_proto_inc",
    hdrs = ["bert_question_answerer_options_proto_inc.h"],
    deps = [
        ":bert_question_answerer_options_cc_proto",
        "//tensorflow_lite_support/cc/task/core/proto:base_options_proto_inc",
    ],
)

proto_library(
    name = "retrieval_proto",
    srcs = ["retrieval.proto"],
    deps = [
        "//tensorflow_lite_support/cc/task/core/proto:base_options_proto",
        "//tensorflow_lite_support/cc/task/processor/proto:embedding_proto",
    ],
)

cc_proto_library(
    name = "retrieval_cc_proto",
    deps = [
        ":retrieval_proto",
    ],
)

cc_library(
    name = "retrieval_proto_inc",
    hdrs = ["retrieval_proto_inc.h"],
    deps = [
        ":retrieval_cc_proto",
        "//tensorflow_lite_support/cc/task/core/proto:base_options_proto_inc",
        "//tensorflow_lite_support/cc/task/vision/proto:embeddings_proto_inc",
    ],
)
